#ExtDNVoice- voice, ExtDNAM - am, ExtDNFax - fax, ExtDNNoAnswer - no answer, ExtDNBusy - busy

def cpd_transfer_answer():
  CPD1.CPDMakePredictiveCall(ExtDNVoice)
  ExtDNVoice.AnswerCall()
  agDN = CPD1.CPDCompleteCall()
  if agDN:
    agDN.ReleaseCall()

def cpd_transfer_am():
  CPD1.CPDMakePredictiveCall(ExtDNAM)
  ExtDNAM.AnswerCall()
  agDN = CPD1.CPDCompleteCall()
  if agDN:
    agDN.ReleaseCall()

def cpd_transfer_fax():
  CPD1.CPDMakePredictiveCall(ExtDNFax)
  ExtDNFax.AnswerCall()
  agDN = CPD1.CPDCompleteCall()
  if agDN:
    agDN.ReleaseCall()

def cpd_transfer_no_answer():
  CPD1.CPDMakePredictiveCall(ExtDNNoAnswer)
  agDN = CPD1.CPDCompleteCall()

def cpd_transfer_busy():
  CPD1.CPDMakePredictiveCall(ExtDNBusy)
  agDN = CPD1.CPDCompleteCall()

def cpd_transfer_answer_busy_queue():
  Ag2.SetNotReady(ACD2)
  Ag3.SetNotReady(ACD3)
  CPD1.CPDMakePredictiveCall(ExtDNVoice)
  ExtDNVoice.AnswerCall()
  agDN = CPD1.CPDCompleteCall()
  ExtDNVoice.ReleaseCall()
  Ag2.SetReady(ACD2)
  Ag3.SetReady(ACD3)

